<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$symbol = UV::readMQ($route->POST("symbol"));
$type = UV::readMQ($route->POST("type"));

$query = "insert into `smiles` values(NULL,'$type','$symbol')";
$update = $db->sendQuery($query);

if ($update)
	goToPage("/admin/smiles/?add=success");
goToPage("/admin/smiles/?add=fail");

?>